<ui:component xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:form prependId="false">
		<p:dataTable var="item" value="#{managedBean.tableList}"
			resizableColumns="#(resizableColumns)"
			emptyMessage="Nenhum registro encontrado" rowIndexVar="var"
			paginator="true" paginatorPosition="bottom"
			firstPageLinkLabel="Primeira" previousPageLinkLabel="Anterior"
			nextPageLinkLabel="Proxima" lastPageLinkLabel="ultima" rows="5">

			<p:columns value="#{managedBean.columns}" var="column"
				columnIndexVar="colIndex">

				<f:facet name="header">  
                	#{column.header}  
            	</f:facet>  
            	
            	#{item[column.property]} 
			</p:columns>

			<p:column>
				<p:commandButton actionListener="#{managedBean[actionDelete]}"
					value="excluir" update="dataTableForm">
					<f:setPropertyActionListener target="#{bean}" value="#{item}" />
				</p:commandButton>
			</p:column>

		</p:dataTable>
	</h:form>
</ui:component>